#include "Socket.h"
#include <stdio.h>

int main(int argc, char ** argv){
	if (argc != 2)
		printf("Usage:testSocket <domain> <port>");
	char buffer[2048];
	char * senddata = "Send test content";
	size_t rl;
	int sock ;
	SendAndRecv( argv[1],
			atoi(argv[2]),
			senddata,
			strlen(senddata),
			buffer,
			&rl
			);
	DEBUG("receive len = %d",rl);
	buffer[rl] = '\0';
	printf("recv:\n%s\nlen:%zd",buffer,rl);
}



